<template>
  <div class="about">
    <div class="mytop">
      <div class="avator">
        <img src="../assets/下载.png" /><span>BLAZER</span>
      </div>
    </div>
    <div class="mycenter">
      <van-card
      v-for="(item,index) in arr"
        :num="item.count"
        :price="30*(item.count)"
      
        :title="item.name"
        :thumb="item.poster"
      />
    </div>
  </div>
</template>
<script>
import Vue from "vue";
import { Card } from "vant";
Vue.use(Card);
export default {
  data() {
    return {
      arr: [],
    };
  },
  mounted() {
    if (window.localStorage.getItem("gplist")) {
      this.arr = JSON.parse(window.localStorage.getItem("gplist"));

    } else {
      this.arr = [];
    }
  },
  methods: {},
};
</script>
<style scoped>
.mycenter {
  width: 100%;
  height: calc(100% - 135px);
}
.avator {
  color: #fff;
}
.avator img {
  width: 63px;
  height: 63px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 10px;
}
.mytop {
  width: 100%;
  height: 135px;
  background: url("../assets/bg.png") no-repeat;
  background-size: 100% 100%;
  padding-top: 50px;
  padding-left: 20px;
  box-sizing: border-box;
}
.about {
  width: 100%;
  height: 100%;
}
</style>